﻿using Coolzon.Realtime.Contracts;
using Coolzon.Realtime.Contracts.CommandData;
using Coolzon.Realtime.ServerApp.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coolzon.Realtime.ServerApp.ServiceImplement
{
    public class ReqGetDomainInstanceModeHandler: BaseHandler<ReqGetDomainInstanceModeData, RespGetDomainInstanceModeData>
    {
        public ReqGetDomainInstanceModeHandler()
            : base(REQUEST_SCENARIO.CONNENT, REQUEST_COMMAND.CONNECT.GETDOMAININSTANCEMODE)
        {
        }

        protected override RespGetDomainInstanceModeData OnHandle(Request request, ReqGetDomainInstanceModeData requestData)
        {
            // 获取用户所要创建的域的方案的，域实例模型
            RespGetDomainInstanceModeData responseData = new RespGetDomainInstanceModeData();
            responseData.DomainInstanceMode = DomainInstanceMode.Singleton;

            return responseData;
        }
    }
}
